// struct 的匿名重载-示例
package main

import "fmt"

type Human struct {
	name  string
	age   int
	phone string // Human 类型拥有的字段
}

type Employee struct {
	Human // 匿名字段
	speciality string
	phone string
}

func main() {
	Bob := Employee{Human{"Bob", 34, "777-444-xxxx"}, "Designer", "333-222"}

	fmt.Println("Bob's work phone is:", Bob.phone)
	// 访问 Human 的 phone 字段
	fmt.Println("Bob's personal phone is:", Bob.Human.phone)
}